package com.xs.api;

import java.util.Scanner;

public class Test05 {
    //手机号码屏蔽
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入手机号：");
        String tel=sc.next();
        //2.截取手机号的前三位， 后四位
        String before=tel.substring(0,3);
        String after=tel.substring(7);
        String S=before+"****"+after;
        System.out.println(S);
    }
}
